package com.tokencloud.consumer.config;

import com.rabbitmq.client.AMQP;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.FanoutExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.xml.ws.BindingType;

//@Configuration
//public class FanoutConfiguration {
//
//    @Bean
//    public FanoutExchange fanoutExchange() {
//        return new FanoutExchange("LYC.fanout2");
//    }
//
//    @Bean
//    public Queue fanoutQueue3() {
//        return new Queue("fanout.queue3");
//    }
//
//    @Bean
//    public Queue fanoutQueue4() {
//        return new Queue("fanout.queue4");
//    }
//
//    @Bean
//    public Binding fanoutBinding3(){
//
//        return BindingBuilder.bind(fanoutQueue3()).to(fanoutExchange());
//    }
//
//    @Bean
//    public Binding fanoutBinding4(){
//        return BindingBuilder.bind(fanoutQueue4()).to(fanoutExchange());
//    }
//}
